package com.ruoyi.restaurant.mapper;

import java.util.List;
import com.ruoyi.restaurant.domain.RestOrders;
import com.ruoyi.restaurant.domain.dto.RestOrdersDTO;

/**
 * 订单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public interface RestOrdersMapper 
{
    /**
     * 查询订单
     * 
     * @param orderId 订单主键
     * @return 订单
     */
    public RestOrders selectRestOrdersByOrderId(Long orderId);

    /**
     * 查询订单列表
     * 
     * @param restOrders 订单
     * @return 订单集合
     */
    public List<RestOrders> selectRestOrdersList(RestOrders restOrders);

    /**
     * 新增订单
     * 
     * @param restOrders 订单
     * @return 结果
     */
    public int insertRestOrders(RestOrders restOrders);

    /**
     * 修改订单
     * 
     * @param restOrders 订单
     * @return 结果
     */
    public int updateRestOrders(RestOrders restOrders);

    /**
     * 删除订单
     * 
     * @param orderId 订单主键
     * @return 结果
     */
    public int deleteRestOrdersByOrderId(Long orderId);

    /**
     * 批量删除订单
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRestOrdersByOrderIds(Long[] orderIds);

    List<RestOrdersDTO> findOrdersWithDishName();
}
